﻿using Framework;

namespace PokerGame
{
    /// <summary>
    /// 客户端处理器基类
    /// </summary>
    public abstract class HandlerBase : IHandler
    {
        public abstract void OnReceive(int subCode, object value);

        protected void Dispatch(AreaCode areaCode, int eventCode, object message)
        {
            MsgCenter.Instance.Dispatch(areaCode, eventCode, message);
        }
    }
}
